﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace _2112A_2_MES._chubowen
{
    /// <summary>
    /// 生产报工记录表
    /// </summary>
    public class ProFeedback : Entity<int>
    {
        

        /// <summary>
        /// 报工类型
        /// </summary>
        [StringLength(64)]
        public string? FeedbackType { get; set; }

        /// <summary>
        /// 报工单号
        /// </summary>
        [StringLength(64)]
        public string? FeedbackCode { get; set; }

        /// <summary>
        /// 工作站ID
        /// </summary>
        public int WorkstationId { get; set; }

        /// <summary>
        /// 工作站编号
        /// </summary>
        [StringLength(64)]
        public string? WorkstationCode { get; set; }

        /// <summary>
        /// 工作站名称
        /// </summary>
        [StringLength(255)]
        public string? WorkstationName { get; set; }

        /// <summary>
        /// 生产工单ID
        /// </summary>
        public int WorkOrderId { get; set; }

        /// <summary>
        /// 生产工单编号
        /// </summary>
        [StringLength(64)]
        public string? WorkOrderCode { get; set; }

        /// <summary>
        /// 生产工单名称
        /// </summary>
        [StringLength(255)]
        public string? WorkOrderName { get; set; }

        /// <summary>
        /// 任务ID
        /// </summary>
        public int TaskId { get; set; }

        /// <summary>
        /// 任务编号
        /// </summary>
        [StringLength(64)]
        public string? TaskCode { get; set; }

        /// <summary>
        /// 物料ID
        /// </summary>
        public int ItemId { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        [StringLength(64)]
        public string? ItemCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        [StringLength(255)]
        public string? ItemName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        [StringLength(500)]
        public string? Specification { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        [StringLength(64)]
        public string? UnitOfMeasure { get; set; }

        /// <summary>
        /// 排产数量
        /// </summary>
        public double? Quantity { get; set; }

        /// <summary>
        /// 反馈次数
        /// </summary>
        public double? QuantityFeedback { get; set; }

        /// <summary>
        /// 合格数量
        /// </summary>
        public double? QuantityQualified { get; set; }

        /// <summary>
        /// 不合格数量
        /// </summary>
        public double? QuantityUnqualified { get; set; }

        /// <summary>
        /// 待检数量
        /// </summary>
        public double? QuantityUncheck { get; set; }

        /// <summary>
        /// 报工人员
        /// </summary>
        [StringLength(64)]
        public string? UserName { get; set; }

        /// <summary>
        /// 报工人昵称
        /// </summary>
        [StringLength(64)]
        public string? NickName { get; set; }

        /// <summary>
        /// 报工渠道
        /// </summary>
        [StringLength(64)]
        public string? FeedbackChannel { get; set; }

        /// <summary>
        /// 报工时间
        /// </summary>
        public DateTime? FeedbackTime { get; set; }

        /// <summary>
        /// 记录人
        /// </summary>
        [StringLength(64)]
        public string? RecordUser { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [StringLength(64)]
        public string? Status { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(500)]
        public string? Remark { get; set; }

        /// <summary>
        /// 自定义字段1
        /// </summary>
        [StringLength(255)]
        public string? Attr1 { get; set; }

        /// <summary>
        /// 自定义字段2
        /// </summary>
        [StringLength(255)]
        public string? Attr2 { get; set; }

        /// <summary>
        /// 自定义字段3
        /// </summary>
        public int? Attr3 { get; set; }

        /// <summary>
        /// 自定义字段4
        /// </summary>
        public int? Attr4 { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [StringLength(64)]
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        [StringLength(64)]
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}
